package com.v1.video.domain;

import java.io.Serializable;

/**
 * 幻灯广告对象
 * @author shenjin
 *
 */
public class CarouselInfo implements Serializable {

	private static final long serialVersionUID = 867844843847526398L;

	/**
	 * 百度广告
	 */
	public static final int TYPE_AD = 0;
	/**
	 * 视频
	 */
	public static final int TYPE_VIDEO = 1;
	/**
	 * 视频分类
	 */
	public static final int TYPE_VIDEO_CATEGORY = 2;
	/**
	 * 活动
	 */
	public static final int TYPE_ACTIVITY = 3;
	/**
	 * 话题
	 */
	public static final int TYPE_TOPIC = 4;
	/**
	 * 链接
	 */
	public static final int TYPE_LINK = 5;
	
	/**
	 * VR直播
	 */
	public static final int TYPE_VRLIVE = 9;
	/**
	 * 广告
	 */
	public static final int TYPE_ADV = 8;
	/**
	 * VR视频
	 */
	public static final int TYPE_VR = 6;
	/**
	 * VR付费直播
	 */
	public static final int TYPE_VRPAYLIVE = 10;

	/**
	 * ":[{"id":1,"type":0,"title":"标题","imageUrl":","association":"12351187"}],
	 */
	private long id;
	private int type;// 广告类型，决定跳转方式
	private String title;// 广告标题
	private String imageUrl;// 广告图片
	private String association;// 广告类型对应的广告时间ID，跳转页面是传递该参数

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	/**
	 * 广告类型，决定跳转方式 CarouselInfo.TYPE_VIDEO TYPE_VIDEO_CATEGORY TYPE_ACTIVITY
	 * TYPE_TOPIC TYPE_LINK
	 * 
	 * @return
	 */
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	/**
	 * 广告标题
	 * @return
	 */
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 广告图片
	 * @return
	 */
	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	/**
	 * 广告类型对应的广告时间ID，跳转页面是传递该参数
	 * @return
	 */
	public String getAssociation() {
		return association;
	}

	public void setAssociation(String association) {
		this.association = association;
	}

}
